﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace Library.OrmEnterpriseEntity.TableInfo {
	///<summary>
	///</summary>
	public class ByteArrayColumnView : DbColumnView {
		
		///<summary>
		///</summary>
		///<param name="columnName"></param>
		///<param name="isKey"></param>
		///<param name="forceHasValue"></param>
		///<param name="unique"></param>
		///<param name="len"></param>
		///<param name="tableView"></param>
		public ByteArrayColumnView(string columnName, bool isKey, bool forceHasValue, bool unique, int len, DbTableView tableView)
			: base(columnName, isKey, forceHasValue, unique, tableView) {
			Len = len;
		}

		///<summary>
		///</summary>
		public int Len { get; private set; }

		#region Overrides of DbColumnView

		public override DbType DbType {
			get { return DbType.Binary; }
		}

		#endregion
	}
}
